/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import '../../../../styles/variables.less';

.app-details-page-tabs {
  .ant-tabs-tabpane {
    height: @app-details-page-tabs-height;
    overflow-y: auto;
    background-color: initial !important;
  }
}

.app-image {
  height: 220px;
  width: 220px;
  border-radius: 50%;
  border: 1px solid @border-color;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-details-header {
  > .ant-space-item:last-child {
    width: 100%;
  }
}

.app-details-page-layout {
  // ****  Lazy Logs ****

  .lazy-log-container {
    .react-lazylog-searchbar {
      position: absolute;
      z-index: 9;
      top: -30px;
      background: unset;
      padding: unset;

      .react-lazylog-searchbar-input {
        height: 30px;
        border-radius: 4px;
        background: unset;
        color: @text-color;
      }
    }

    .react-lazylog-searchbar-filter,
    .react-lazylog-searchbar-matches {
      display: none;
    }
  }

  // ****  Stats  ****

  .request-badge {
    &.success {
      .ant-badge-count {
        background-color: @green-3;
        color: @text-color;
      }
    }

    &.failed {
      .ant-badge-count {
        background-color: @red-3;
        color: @text-color;
      }
    }

    &.running {
      .ant-badge-count {
        background-color: @primary-color;
      }
    }
  }
}

.update-schedule-modal {
  .ant-modal-body {
    overflow-y: auto;
  }
}
